module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
    const SubscribeSchema = new Schema({
      userid:{type:mongoose.Schema.Types.ObjectId,ref:'User'},
      subscribeid:{type:mongoose.Schema.Types.ObjectId,ref:'User'},
      createtime:{type:Date,default:Date.now},
      updatetime:{type:Date,default:Date.now},
    });
    return mongoose.model('Subscribe', SubscribeSchema);
  }